package com.ad_hccm.service.impl.TreatmentHistory;

import com.ad_hccm.dao.TreatmentHistory.TreatmentHistoryDao;
import com.ad_hccm.domain.TreatmentHistory.TreatmentHistory;
import com.ad_hccm.service.TreatmentHistory.TreatmentHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 治疗史ServiceImpl
 */
@Service
public class TreatmentHistoryServiceImpl implements TreatmentHistoryService {
    @Autowired
    private TreatmentHistoryDao treatmentHistoryDao;

    @Override
    public boolean save(TreatmentHistory treatmentHistory) {
        return treatmentHistoryDao.save(treatmentHistory);
    }

    @Override
    public boolean update(TreatmentHistory treatmentHistory) {
        return treatmentHistoryDao.update(treatmentHistory);
    }

    @Override
    public TreatmentHistory getById(String id) {
        return treatmentHistoryDao.getById(id);
    }

    @Override
    public List<TreatmentHistory> getAll() {
        return treatmentHistoryDao.getAll();
    }
}
